﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Telerik.WinControls;

namespace VIFON
{
    public partial class frmBaseMain : Telerik.WinControls.UI.RadForm
    {
        public frmBaseMain()
        {
            InitializeComponent();
        }

        private void btnCustomerManage_Click(object sender, EventArgs e)
        {
            if (pnMain.Controls["frmCustomers"] == null)
            {
                pnMain.Controls.Clear();
                frmCustomers objForm = new frmCustomers();
                objForm.TopLevel = false;
                pnMain.Controls.Add(objForm);
                objForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
                objForm.Dock = DockStyle.Fill;
                //objForm.Anchor = AnchorStyles.Left;
                objForm.Show();
            }
        }

        private void btnProductManage_Click(object sender, EventArgs e)
        {
            if (pnMain.Controls["frmProducts"] == null)
            {
                pnMain.Controls.Clear();
                frmProducts objForm = new frmProducts();
                objForm.TopLevel = false;
                pnMain.Controls.Add(objForm);
                objForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
                objForm.Dock = DockStyle.Fill;
                //objForm.Anchor = AnchorStyles.Left;
                objForm.Show();
            }
        }

        private void frmBaseMain_Load(object sender, EventArgs e)
        {

        }

        private void radButton1_Click(object sender, EventArgs e)
        {
            if (pnMain.Controls["frmBills"] == null)
            {
                pnMain.Controls.Clear();
                frmBills objForm = new frmBills();
                objForm.TopLevel = false;
                pnMain.Controls.Add(objForm);
                objForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
                objForm.Dock = DockStyle.Fill;
                //objForm.Anchor = AnchorStyles.Left;
                objForm.Show();
            }
        }

        private void radButton2_Click(object sender, EventArgs e)
        {
            if (pnMain.Controls["frmCustomerSummary"] == null)
            {
                pnMain.Controls.Clear();
                frmCustomerSummary objForm = new frmCustomerSummary();
                objForm.TopLevel = false;
                pnMain.Controls.Add(objForm);
                objForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
                objForm.Dock = DockStyle.Fill;
                //objForm.Anchor = AnchorStyles.Left;
                objForm.Show();
            }
        }

    }
}
